package com.perceptivesoftware.licensing.client.dialogs.useradmin.plugin;

public class UserOptionNavItem extends SecurityManagerNavItem
{
	private Long code;
	private Long master;
	private Long workspaceCode;

	// for Serialization
	private UserOptionNavItem()
	{
		super(null);
	}

	public UserOptionNavItem(final String name, final Long code, final Long master, final Long workspaceCode)
	{
		super(name);
		this.code = code;
		this.master = master;
		this.workspaceCode = workspaceCode;
	}

	public Long getCode()
	{
		return code;
	}

	@SuppressWarnings("unused")
	// for Serialization
	private void setCode(final Long code)
	{
		this.code = code;
	}

	public Long getMaster()
	{
		return master;
	}

	public void setMaster(final Long master)
	{
		this.master = master;
	}

	public Long getWorkspaceCode()
	{
		return workspaceCode;
	}

	@SuppressWarnings("unused")
	// for Serialization
	private void setWorkspaceCode(final Long deptCode)
	{
		workspaceCode = deptCode;
	}

	@Override
	public String getToolTip()
	{
		return "Organization Code: " + code;
	}
}